//
//  MIneFooterView.swift
//  HR
//
//  Created by zhenyu on 17/6/24.
//  Copyright © 2017年 allblue. All rights reserved.
//

import UIKit

class MIneFooterView: UIView {
  
  // MARK: - LifeCycle
  convenience init() {
    let frame = CGRect(x: 0, y: 0, width: ScreenWidth, height: 120)
    self.init(frame: frame)
  }
  
  override init(frame: CGRect) {
    super.init(frame: frame)
    setViews()
  }
  
  required init?(coder aDecoder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
  }
  
  // MARK: - SetViews
  func setViews() {
    backgroundColor = Color.back
    
    _ = Button().then({ (b) in
      addSubview(b)
      b.title = "退出登录"
      b.hlight()
    }).then({ (b) in
      b.snp.makeConstraints({ (make) in
        make.top.equalTo(30)
        make.left.equalTo(20)
        make.right.equalTo(self.snp.right).offset(-20)
        make.height.equalTo(44)
      })
    })
  }
}
